package com.tianya.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("message")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Message {
    @TableId(type = IdType.AUTO)
    private Long messageId;
    private String title;
    private String content;
    private Long senderId;
    private String senderName;
    private Long senderRole;
    private Long receiverId;
    private String receiverName;
    private Long receiverRole;
    private Boolean isRead;
    private Long replyToId;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Boolean isDeleted;
}